]> dgit.raspbian.org Git - gnome-shell.git/commit
Use the right conversion from cairo to GdkPixbuf
authorGiovanni Campagna <gcampagna@src.gnome.org>
Sat, 16 Feb 2013 02:50:28 +0000 (03:50 +0100)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Sat, 16 Feb 2013 03:09:21 +0000 (04:09 +0100)
commit9b9f33bc8be1f1a97a68d12eeeb9b85a3f36ce38
treeb581c29f1c0857c839a8f4dd61d7f311f6ad72ca
parent24984458de595e1af1ed6970ab1f83ca48483086
Use the right conversion from cairo to GdkPixbuf

GdkPixbuf is stored in memory as individual bytes, in strict red-green-blue-alpha
order, while cairo image surfaces are stored as 32bits units whose
order depends on the endianess.
It is probably possible to do something better, taking advantage
of cogl and the GL using the actual component order, but for now
it is easier to use the GDK utility to convert the cairo surface.

https://bugzilla.gnome.org/show_bug.cgi?id=693931
src/shell-screenshot.c